package com.foreknow.oop.hw7;

/**
 * 图书类
 */
public class Book {
    private int bookId;         // 图书编号
    private String bookName;    // 图书名
    private double bookPrice;   // 图书价格
    private int inventory;      // 库存量

    public Book() { }

    public Book(int bookId, String bookName, double bookPrice, int inventory) {
        this.bookId = bookId;
        this.bookName = bookName;
        this.bookPrice = bookPrice;
        this.inventory = inventory;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public double getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(double bookPrice) {
        this.bookPrice = bookPrice;
    }

    public int getInventory() {
        return inventory;
    }

    public void setInventory(int inventory) {
        this.inventory = inventory;
    }
}
